package org.shangrila.bme.eo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.math.BigDecimal;


/**
 * The persistent class for the bme_rtn_info database table.
 * 
 */
@Entity
@Table(name="bme_rtn_info")
@NamedQuery(name="BmeRtnInfo.findAll", query="SELECT b FROM BmeRtnInfo b")
public class BmeRtnInfo implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String id;

	@Column(name="RTN_ID")
	private String rtnId;

	private BigDecimal amount;

	@Column(name="ASN_AMOUNT")
	private BigDecimal asnAmount;

	@Column(name="CONT_NAME")
	private String contName;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_TIME")
	private Date createTime;

	@Column(name="CUST_NAME")
	private String custName;

	private String operator;

	@Column(name="PAY_AMOUNT")
	private BigDecimal payAmount;

	
	private String remarks;

	@Column(name="RTN_AMOUNT")
	private BigDecimal rtnAmount;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="RTN_DATE")
	private Date rtnDate;

	private String status;
	
	@Column(name="RTN_PERCENT")
	private String rtnPercent;
	
	//bi-directional many-to-one association to BmeContract
	@ManyToOne
	@JoinColumn(name="CONT_ID")
	private BmeContract bmeContract;

	//bi-directional many-to-one association to BmePayroll
	@ManyToOne
	@JoinColumn(name="PAY_ID")
	private BmePayroll bmePayroll;

	public BmeRtnInfo() {
	}

	public String getId() {
		return this.id;
	}

	
	public String getRtnPercent() {
		return rtnPercent;
	}

	public void setRtnPercent(String rtnPercent) {
		this.rtnPercent = rtnPercent;
	}

	public void setId(String id) {
		this.id = id;
	}

	public BigDecimal getAmount() {
		return this.amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public BigDecimal getAsnAmount() {
		return this.asnAmount;
	}

	public void setAsnAmount(BigDecimal asnAmount) {
		this.asnAmount = asnAmount;
	}

	public String getContName() {
		return this.contName;
	}

	public void setContName(String contName) {
		this.contName = contName;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCustName() {
		return this.custName;
	}

	public void setCustName(String custName) {
		this.custName = custName;
	}

	public String getOperator() {
		return this.operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public BigDecimal getPayAmount() {
		return this.payAmount;
	}

	public void setPayAmount(BigDecimal payAmount) {
		this.payAmount = payAmount;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public BigDecimal getRtnAmount() {
		return this.rtnAmount;
	}

	public void setRtnAmount(BigDecimal rtnAmount) {
		this.rtnAmount = rtnAmount;
	}

	public Date getRtnDate() {
		return this.rtnDate;
	}

	public void setRtnDate(Date rtnDate) {
		this.rtnDate = rtnDate;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public BmeContract getBmeContract() {
		return this.bmeContract;
	}

	public void setBmeContract(BmeContract bmeContract) {
		this.bmeContract = bmeContract;
	}

	public BmePayroll getBmePayroll() {
		return this.bmePayroll;
	}

	public void setBmePayroll(BmePayroll bmePayroll) {
		this.bmePayroll = bmePayroll;
	}
	
	public String getRtnId() {
		return rtnId;
	}

	public void setRtnId(String rtnId) {
		this.rtnId = rtnId;
	}
}